<%@page import="java.util.Iterator"%>
<%@page import="user.User"%>
<%@page import="java.awt.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人信息</title>
<style type="text/css">
body{
background-image: url("../images/1.png");
}
table{
    position: absolute;
	left: 30%;
    padding: 4% 4% 6% 3%;
	margin-right: 10%;
	margin-top: 0%;
    align:center;
}
.form-control {
	width: 200px;
	padding: 7px 0px;
	color: #fff;
	border: none;
	border-bottom: 1px solid #fff;
	outline: none;
	background: transparent;
	border:none;
}
.text {
	position: relative;
}
td{
    font-family:"STXingkai";
     color:#CC00FF;
     text-align:center;
     font-size:50px;
}
input[type=text]{
    font-family:"STXingkai";
     color:#CC00FF;
     text-align:center;
     font-size:50px;
}
input[type=button]{
color:#CC00FF;
}
</style>
</head>
<body>
<%
if(session.getAttribute("list") == null){
	 return;
}
ArrayList<User> list = (ArrayList<User>)session.getAttribute("list");
Iterator<User> iterator = list.iterator();

while(iterator.hasNext()){
	User user = iterator.next();
	int uid = user.getUid();
	String sex = user.getSex();
	if(sex.equals("1")){
		sex="女";
	}
	else{
		sex="男";
	}
	int type =user.getType();
	String type_s;
	if(type == 0){
		type_s="普通用户";
	}
	else{
		type_s="管理员";
	}
	int isValid =user.getIsValid();
	String isValid_s;
	if(isValid == 0){
		isValid_s="无效";
	}
	else{
		isValid_s="有效";
	}
%>
<table>
<tr><td class="text" align="center">用户名:<input class="form-control" type="text" value="<%=user.getUname() %>" readonly="readonly"></td></tr>
<tr><td class="text" align="center">性别:<input class="form-control" type="text" value="<%=sex %>"><br>
<tr><td class="text" align="center">职业:<input class="form-control" type="text" value="<%=user.getProfession() %>" readonly="readonly"></td></tr>
<tr><td class="text" align="center">爱好:<input class="form-control" type="text" value="<%=user.getFavourite() %>" readonly="readonly"></td></tr>
<tr><td class="text" align="center">个人简历:<input class="form-control" type="text" value="<%=user.getNote() %>" readonly="readonly"></td></tr>
<tr>
	<td colspan="4" style="background-color:transparent;">
		<a href="../content/welcome.jsp"><input type="button" value="返回"></a>
	</td>
</tr>
<%
}
%>
</table>
</body>
</body>
</html>